package com.xiaoyu.studyworkspace.common.kapaentity.websocket;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class KapaSocket {

    private double betNum;

    private String deployPappId;

    private String initId;

    private String sessionId;

    private String isE;

    private double totalNum;

    private int userId;

    private double pearl;

    private int prevRoomId;

    private int roomId;

    private String userName;

    private String type;

    private int cmdCode;

    private int cmdMerge;

    private byte[] data;

    private int msgId;

    private String validMsg;

    private int protocolSwitch;

    private int responseStatus;

    @Override
    public String toString() {
        return "{\"cmdCode\":" + cmdCode + "," + "\"cmdMerge\":" + cmdMerge + "," + "\"data\":" + Arrays.toString(data) + "}";
    }

}
